<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<?php echo ($sets->keyword); ?>" />
<meta name="description" content="<?php echo ($sets->description); ?>" />
<title>三原县信息网 -- 信息列表</title>
<link rel="stylesheet" href="__ROOT__/Tpl/Public/css/category.css" />
<script type="text/javascript" src="__ROOT__/Public/Jquery/jquery.js"></script>
<script type="text/javascript" src="__ROOT__/Public/client_remind.js"></script>
<script type="text/javascript" src="__ROOT__/Tpl/Public/js/header.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $('div.search input.k').focus(function() {
            if($(this).val() == '输入关键词...') 
                $(this).css('color', '#333').val('');    
        }).blur(function() {
            if($(this).val() == '')
                $(this).css('color', '#999').val('输入关键词...');    
        });
        $('#list ul li').hover(function() {
            $(this).css('background', '#EEF2FB');
        },function() {
            $(this).css('background', '#fff');
        });
        $('#list ul li.stick').hover(function() {
            $(this).css('background', '#EEF2FB');
        },function() {
            $(this).css('background', '#FFF5F5');
        });
        
        //搜索验证
        $('form.search1').submit(function() {
            if($('input.k').val() == '输入关键词...') {
                alert('请输入搜索内容!');
                return false;
            } else if($('input.k').val().length < 2) {
                alert('至少输入两位数的搜索内容!');
                return false;
            }
        });
    });
    
</script>
</head>

<body>
<link rel="stylesheet" href="__ROOT__/Tpl/Public/css/basic.css" />
<div id="header">
    <div class="top">
        <strong>三原县 　<span><?php echo ($now); ?> <font style="color:#06f;"><?php echo ($hello); ?></font></span></strong>
        <?php if(isset($_COOKIE['user'])): ?><span>欢迎,<b style="color:green;"><?php echo (cookie('user')); ?></b> <a href="__ROOT__/member.php">用户中心</a>|<a href="__ROOT__/User/logout">退出</a></span>
        <?php else: ?>
        <span><a href="<?php echo U('/User/reg');?>">注册</a> | <a href="<?php echo U('/User/login');?>">登陆</a></span><?php endif; ?>
    </div>
    <div class="body">
        <div class="logo"><a href="__ROOT__"><img src="__ROOT__/Tpl/Public/images/logo.gif" alt="网站logo"/></a></div>
        <div class="search">
            <form method="get" action="__ROOT__/Search/index/" class="search">
                <ul>
                    <li class="first"><span>信息</span><img src="__ROOT__/Tpl/Public/images/arrow.png" /></li>
                    <li class="show"><a href="#" title="1">信息</a></li>
                    <li class="show"><a href="#" title="2">新闻</a></li>
                </ul>
                <input type="hidden" name="type" id="type" value="1"/><input type="text" name="keyword" class="stext" value="<?php echo ($_GET['keyword']); ?>" /> <input type="submit" value="搜索" class="sub" />
            </form>
        </div>
        <div class="toppost">
            <a href="<?php echo U('/Post/index');?>" style="color:orange;">免费发布信息</a>
            <a href="__ROOT__/member.php/Index/myInfo" style="color:#666;" class="u">修改删除信息</a>
        </div>
    </div>
</div>
<div id="category">
    <ul>
        <li><a href="__ROOT__">首页</a></li>
        <li><a href="<?php echo U('/News');?>">新闻资讯</a></li>
        <?php if(is_array($teninfonav)): $i = 0; $__LIST__ = $teninfonav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('/Category/index','id='.$value['id']);?>"><?php echo ($value["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
        <li><a href="<?php echo U('/About');?>">关于本站</a></li>
    </ul>
</div>

<div id="map"><img src="__ROOT__/Tpl/Public/images/location.gif" style="position:relative;top:2px;"/>  <a href="/">三原县信息网</a> &gt 
<?php if($navname['pname']): ?><a href="<?php echo U('/Category/index','id='.$navname['pid']);?>"><?php echo ($navname["pname"]); ?></a> &gt; <?php echo ($navname["cname"]); ?>
<?php else: ?>
    <?php echo ($navname["cname"]); endif; ?>
</div>
<div id="attr">
    <?php if(empty($navname["pname"])): ?><div class="de">
        <h4>栏目分类</h4>
        <ul>
            <li><a href="###" class="select">不限</a></li>
            <?php if(is_array($childnav)): $i = 0; $__LIST__ = $childnav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('/Category/index','id='.$value['id']);?>"><?php echo ($value["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div><?php endif; ?>
    <?php if(is_array($myattr)): $i = 0; $__LIST__ = $myattr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><div class="de">
        <h4><?php echo ($value["name"]); ?></h4>
        <ul>
            <?php if($_GET[$value['nickname']]): ?><li><a href="<?php echo unsetParam($value['nickname']);?>">不限</a></li>
            <?php else: ?>
            <li><a href="<?php echo unsetParam($value.nickname);?>" class="select">不限</a></li><?php endif; ?>
            <?php if(is_array($value["details"])): $i = 0; $__LIST__ = $value["details"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i; if($_GET[$value['nickname']] == $v): ?><li><a href="<?php echo getUrl($value['nickname'].'/'.$v);?>" class="select"><?php echo ($v); ?></a></li>
                <?php else: ?>
                <li><a href="<?php echo getUrl($value['nickname'].'/'.$v);?>"><?php echo ($v); ?></a></li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div><?php endforeach; endif; else: echo "" ;endif; ?>
    <div class="search">
        <form method="get" action="__ROOT__/Search/index/" class="search1">
            <input type="hidden" name="catid" value="<?php echo ($_GET['id']); ?>" />
            <input type="hidden" name="type" value="1" />
            <input type="text" name="keyword" value="输入关键词..." class="text k"/>
            <input type="submit" value="在本类搜索" class="sub"/>
        </form>
    </div>
</div>
<div id="list">
    <h2>信息列表</h2>
    <p class="count">共有信息 <span style="color:red;"><?php echo ($count); ?></span> 条      <a href="<?php echo U('/Post/input/','id='.$navname['cid']);?>" target="_blank">马上发布一条<?php echo ($navname["cname"]); ?>的信息</a></p>
    <ul>
        <?php if(is_array($allinfo)): $i = 0; $__LIST__ = $allinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i; if($value['stick'] == 0): ?><li><em><?php echo (date('Y-m-d H:i:s',$value["addtime"])); ?></em><a href="<?php echo U('/Info/details/','id='.$value['id']);?>"><?php echo ($value["title"]); ?></a></li>
        <?php else: ?>
        <li class="stick"><em><?php echo (date('Y-m-d H:i:s',$value["addtime"])); ?></em><a href="<?php echo U('/Info/details/','id='.$value['id']);?>"><?php echo ($value["title"]); ?></a><img src="__ROOT__/Tpl/Public/images/stick.jpg" /></li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
    </ul>
    <div id="page" style="margin-bottom:30px;margin-top:-15px;"><?php echo ($page); ?></div>
</div>




<div id="flinks">
    <h2>友情链接</h2>  
    <ul>
        <?php if(is_array($flinks)): $i = 0; $__LIST__ = $flinks;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($value["url"]); ?>" target="_blank"><?php echo ($value["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>  
</div>
<div id="footer">
    <p>©三原县信息网 晋 ICP备12009119号</p>
    <p>Powered by 信息网 xxx.xxxx.xx</p>
</div>

</body>
</html>